package com.wjxy.communityapp.dto;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Fluency
 * @creat 2021-01
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("tb_role")
@ApiModel(value="住户信息，地址信息整合", description="")
public class ResidentDto implements Serializable {
    @TableId(value = "res_id", type = IdType.AUTO)
    private Integer resId;

    private String resName;

    private Integer resSex;

    private String resPhone;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private String resIntotime;

    @ApiModelProperty("0表示正常，1表示低风险，2表示高风险")
    private Integer resStatus;

    private String resRemark;

    private String resPhoto;
    //地址相关字段

    private Integer addId;

    private String addSort;

    private String addName;

    private Integer addHouse;

    private Integer addUnit;

    private Integer addCount;

}
